import request from "@/utils/request";


// 广告员工监管详情
export const advertisementEmployeeApisupervisedetail = (advertisementEmployeeId) => {
  return request({
    url: `/backAdmin/advertisementEmployeeApi/supervise/detail?advertisementEmployeeId=${advertisementEmployeeId}`,
    method: "get",
  });
};

// 广告员工监管列表
export const advertisementEmployeeApisuperviselist = (query) => {
  return request({
    url: `/backAdmin/advertisementEmployeeApi/supervise/list`,
    method: "get",
    params: query,
  });
};


// 广告人员发布
export const advertisementEmployeeApiPublish = (data) => {
  return request({
    url: `/backAdmin/advertisementEmployeeApi/publish`,
    method: "post",
    data,
  });
};



// 广告员工审核详情
export const advertisementEmployeeApiapplydetail = (advertisementEmployeeId) => {
  return request({
    url: `/backAdmin/advertisementEmployeeApi/apply/detail?advertisementEmployeeId=${advertisementEmployeeId}`,
    method: "get",
  });
};


// 广告人员审核(true通过 false拒绝)
export const advertisementEmployeeApiApplyHandle = ({
  advertisementEmployeeId,
  handle,
}) => {
  return request({
    url: `/backAdmin/advertisementEmployeeApi/apply/handle?handle=${handle}&advertisementEmployeeId=${advertisementEmployeeId}`,
    method: "post",
  });
};
// 广告人员审核列表
export const advertisementEmployeeApiApplyList = (query) => {
  return request({
    url: `/backAdmin/advertisementEmployeeApi/apply/list`,
    method: "get",
    params: query,
  });
};

export const listNotice = (query) => {
  return request({
    url: "/backAdmin/advertisementEmployeeApi/list",
    method: "get",
    params: query,
  });
};
// 删除广告
export function delNotice(advertisementEmployeeIdList) {
  return request({
    url: `/backAdmin/advertisementEmployeeApi/delete?advertisementEmployeeIdList=${advertisementEmployeeIdList}`,
    method: "post",
  });
}

// 查询公告详细
export function getNotice(noticeId) {
  return request({
    url: "/system/notice/" + noticeId,
    method: "get",
  });
}

// 新增公告
export function addNotice(data) {
  return request({
    url: "/system/notice",
    method: "post",
    data: data,
  });
}

// 修改公告
export function updateNotice(data) {
  return request({
    url: "/system/notice",
    method: "put",
    data: data,
  });
}
